import request from '@/utils/axios'
import {
    appUrl
} from '@/utils/env'

export function getSingerList(data) {
    return request({
        url: appUrl + '/singer/search',
        method: 'post',
        data
    })
}

export function addSinger(data) {
    return request({
        url: appUrl + '/singer/create',
        method: 'post',
        data
    })
}

export function editSinger(data) {
    return request({
        url: appUrl + '/singer/update',
        method: 'post',
        data
    })
}
export function getSingerInfo(data) {
    return request({
        url: appUrl + '/singer/info',
        method: 'post',
        data
    })
}

export function deleteSinger(data) {
    return request({
        url: appUrl + '/singer/delete',
        method: 'post',
        data
    })
}

export function getAllSinger(data) {
    return request({
        url: appUrl + '/singer/list',
        method: 'post',
        data: {}
    })
}
